package com.dhcc.utils.objects;

public class NoSuchBeanException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1095947252128902761L;
	private Class beanClass;
	private String beanName;

	public NoSuchBeanException(String name, Class cls) {
		this.beanName = name;
		this.beanClass = cls;
	}
	@Override
	public String getMessage() {
		return "name:"+beanName+", class:"+beanClass;
	}
	
	public Class getBeanClass() {
		return beanClass;
	}
	
	public String getBeanName() {
		return beanName;
	}
}
